﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using ClientMobile.SSVService;
using googlemaps;

namespace ClientMobile
{
    public partial class Inbox : PhoneApplicationPage
    {
        
        public Inbox()
        {
            InitializeComponent();
            Singleton s = Singleton.Instance;
            Service1SoapClient ser = new Service1SoapClient();
            ser.AfficherListeNotiNonLuCH_msgCompleted += new EventHandler<AfficherListeNotiNonLuCH_msgCompletedEventArgs>(ser_AfficherListeNotiNonLuCH_msgCompleted);
            ser.AfficherListeNotiNonLuCH_msgAsync(s.Chauff.id_chauffeur);
        }

        void ser_AfficherListeNotiNonLuCH_msgCompleted(object sender, AfficherListeNotiNonLuCH_msgCompletedEventArgs e)
        {
            listBox1.DataContext = e.Result;
        }

        

    

       
  

    

    }
}